<div class="m-card clearfix" v-bind:class="{'m-collapse':collapse}" v-if="show">

    <div class="header clearfix" v-if="headShow">
        <div class="fl">
            <slot name="header-left">
                <i class="fa fa-cube"></i>
                <span class="dialog-title">{{title}}</span>
            </slot>
        </div>
        <div class="fr">
            <slot name="header-right">
                <a class="fa" v-bind:class="{'fa-angle-double-down':collapse,'fa-angle-double-up':!collapse}" v-on:click.stop="toggleShow()"></a>
            </slot>

        </div>

    </div>

    <div class="body clearfix" v-bind:class="{'no_padding':noPadding}">
        <slot></slot>
    </div>
</div>